package com.augurit.wf.common.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.augurit.wf.common.constant.WfConstant;

@Entity
@Table(name = "TBL_SMTOSEND")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SMToSend implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3497153181158936128L;
	
	@Id
    @Column(name="SM_ID")
    @SequenceGenerator(name="SEQ_TBL_SMTOSEND", sequenceName="SEQ_TBL_SMTOSEND", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_TBL_SMTOSEND")
	private Long smId;
	@Column(name="SUBTIME")
	private Date subTime;
	@Column(name="ORGADDR")
	private String orgAddr = WfConstant.ORG_ADDR;
	@Column(name="DESTADDR")
	private String destAddr;
	@Column(name="SM_CONTENT")
	private String smContent;
	@Column(name="SENDTIME")
	private Date sendTime;
	@Column(name="NEEDSTATEREPORT")
	private Long needStateReport;
	@Column(name="SERVICEID")
	private String serviceId;
	@Column(name="FEETYPE")
	private String feeType;
	@Column(name="FEECODE")
	private String feeCode;
	@Column(name="MSGID")
	private String msgId;
	@Column(name="TRYTIMES")
	private Long tryTimes;
	@Column(name="RESERVE1")
	private Long reserve1;
	@Column(name="RESERVE2")
	private String reserve2;
	@Column(name="CREATORID")
	private String creatorId;
	@Column(name="sts")
	private String sts;
	public Long getSmId() {
		return smId;
	}
	public void setSmId(Long smId) {
		this.smId = smId;
	}
	public Date getSubTime() {
		return subTime;
	}
	public void setSubTime(Date subTime) {
		this.subTime = subTime;
	}
	public String getOrgAddr() {
		return orgAddr;
	}
	public void setOrgAddr(String orgAddr) {
		this.orgAddr = orgAddr;
	}
	public String getDestAddr() {
		return destAddr;
	}
	public void setDestAddr(String destAddr) {
		this.destAddr = destAddr;
	}
	public String getSmContent() {
		return smContent;
	}
	public void setSmContent(String smContent) {
		this.smContent = smContent;
	}
	public Date getSendTime() {
		return sendTime;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	public Long getNeedStateReport() {
		return needStateReport;
	}
	public void setNeedStateReport(Long needStateReport) {
		this.needStateReport = needStateReport;
	}
	public String getServiceId() {
		return serviceId;
	}
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}
	public String getFeeType() {
		return feeType;
	}
	public void setFeeType(String feeType) {
		this.feeType = feeType;
	}
	public String getFeeCode() {
		return feeCode;
	}
	public void setFeeCode(String feeCode) {
		this.feeCode = feeCode;
	}
	public String getMsgId() {
		return msgId;
	}
	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}
	public Long getTryTimes() {
		return tryTimes;
	}
	public void setTryTimes(Long tryTimes) {
		this.tryTimes = tryTimes;
	}
	public Long getReserve1() {
		return reserve1;
	}
	public void setReserve1(Long reserve1) {
		this.reserve1 = reserve1;
	}
	public String getReserve2() {
		return reserve2;
	}
	public void setReserve2(String reserve2) {
		this.reserve2 = reserve2;
	}
	public String getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}
	public String getSts() {
		return sts;
	}
	public void setSts(String sts) {
		this.sts = sts;
	}
	
}
